<?php

class ActionDetails extends BaseAction
{
    public function run()
    {    
        $iTariffPlanId = Yii::app()->request->getParam('tariff_plan_id');
	    
        if ($iTariffPlanId) 
        {
            $oTariffPlan = TariffPlan::model()->findByPk($iTariffPlanId);
        }
        else
        {
            Yii::app()->controller->redirect(Yii::app()->controller->createUrl('/admin/tariff_orders'));
        }

        $this->template->oTariffPlan = $oTariffPlan;
    }
}